<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="com.domain.ZhongLei,java.util.ArrayList,com.domain.*"%>

<%
YongHu yonghu=(YongHu)session.getAttribute("yonghu");

ShangPin dangqianshangpin=(ShangPin)session.getAttribute("dangqianshangpin");

if(yonghu==null)
{
	request.getRequestDispatcher("yonghudenglu.jsp").forward(request, response);
}
if(dangqianshangpin==null)
{
	request.getRequestDispatcher("Shangchengsgouye").forward(request, response);
}
%>

<html>
	<head>
		<style>A{text-decoration: NONE} </style>
		<title>商品详情</title>
	</head>
	<body >
	<table width="100%" >
		<tr>
			<td align="left"><a href="shangchengshouye.jsp">商城首页</a></td>
			<td align="right">
				<a href="Gerenzhongxin"><%=yonghu.getYonghuming()%></a>&nbsp;
				<a href="Tuichu">退出</a>
			</td>
		</tr>
	</table>

	<br><br>

	<table align="center" width="80%" bgcolor="#d0eed8" border="1" cellspacing="5">	
		<tr align="center">
			<td rowspan="4" width="50%" ><img src="./images/<%=dangqianshangpin.getTupian().get(0) %>.jpg" width="100%"/></td>
			<td colspan="2"><%=dangqianshangpin.getMingzi() %></td>	
		</tr>
		
		<tr align="center"><td colspan="2"><%=dangqianshangpin.getMiaoshu() %></td></tr>
		<tr align="center">
			<td width="25%" >¥<%=dangqianshangpin.getJiage() %></td>
			<td>剩余<%=dangqianshangpin.getShuliang() %></td>
		</tr>
		<tr align="center"><td colspan="2"><a href="Jiarugouwuche">加入购物车</a></td></tr>
	</table>
<br>	


<p align="center"><font size="+5">商品详细信息</font>
	<br>

<%
	for(int i=1;i<dangqianshangpin.getTupian().size();i++)
	{
%>
	<img src="./images/<%=dangqianshangpin.getTupian().get(i) %>.jpg" width="80%"/>
<%	
	}
%>
							



  </body>
</html>
